<?php
class Controller_WWW_Ziyingajax extends Controller{

    public function __construct ($req, $res)
   {
      parent::__construct($req, $res);
   }
    
    public function action_ajax_scanAdd ($id)
   {
      $scannum=DB::select('scan')
               ->from('mod_ziying')
               ->where('id', '=', $id)
               ->execute()
               ->get('scan');
               $scannum++;
               DB::update('mod_ziying')
               ->set(array('scan'=>$scannum))
               ->where('id','=',$id)
               ->execute();
   }


                                                                                                                }
